home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 August / MW 8 2003 CD1.iso / Inside Macworld / Product News / gimp-1.2.4.sit / gimp-1.2.4 / user_install < prev   
Encoding:
Text File  |  2000-11-07  |  1.5 KB  |  63 lines

  1. #!/bin/sh
  2.  
  3. #  Script to perform the default installation steps for the
  4. #   specified user home directory.
  5. #
  6. #  1) Create ~/.gimp-1.2 if it doesn't exist
  7. #  2) Copy system gimprc file to ~/.gimp-1.2
  8. #  3) Create brushes, gradients, palettes, patterns, plug-ins subdirs
  9. #  4) Create the tmp subdirectory for disk-swapping undo buffers
  10. #  5) Copy the palette files in system palette directory
  11. #
  12.  
  13. echo "mkdir $2"
  14. mkdir $2
  15.  
  16. echo "cp $3/gimprc_user $2/gimprc"
  17. cp $3/gimprc_user $2/gimprc
  18.  
  19. echo "cp $3/unitrc $2/unitrc"
  20. cp $3/unitrc $2/unitrc
  21.  
  22. echo "cp $3/gtkrc_user $2/gtkrc"
  23. cp $3/gtkrc_user $2/gtkrc
  24.  
  25. echo "mkdir $2/brushes"
  26. mkdir $2/brushes
  27. echo "mkdir $2/generated_brushes"
  28. mkdir $2/generated_brushes
  29. echo "mkdir $2/gradients"
  30. mkdir $2/gradients
  31. echo "mkdir $2/palettes"
  32. mkdir $2/palettes
  33. echo "cp $1/palettes/* $2/palettes"
  34. cp $1/palettes/* $2/palettes
  35. echo "mkdir $2/patterns"
  36. mkdir $2/patterns
  37. echo "mkdir $2/plug-ins"
  38. mkdir $2/plug-ins
  39. echo "mkdir $2/modules"
  40. mkdir $2/modules
  41. echo "mkdir $2/scripts"
  42. mkdir $2/scripts
  43. echo "mkdir $2/tmp"
  44. mkdir $2/tmp
  45. echo "mkdir $2/curves"
  46. mkdir $2/curves
  47. echo "mkdir $2/levels"
  48. mkdir $2/levels
  49. echo "mkdir $2/fractalexplorer"
  50. mkdir $2/fractalexplorer
  51. echo "mkdir $2/gfig"
  52. mkdir $2/gfig
  53. echo "mkdir $2/gflare"
  54. mkdir $2/gflare
  55. echo "mkdir $2/gimpressionist"
  56. mkdir $2/gimpressionist
  57. echo "mkdir $2/gimpressionist/Brushes"
  58. mkdir $2/gimpressionist/Brushes
  59. echo "mkdir $2/gimpressionist/Paper"
  60. mkdir $2/gimpressionist/Paper
  61. echo "mkdir $2/gimpressionist/Presets"
  62. mkdir $2/gimpressionist/Presets
  63.